/*
 * my_usart.h
 *
 *  Created on: Jul 4, 2023
 *      Author: ASUS
 */

#ifndef INC_COMPORT_H_
#define INC_COMPORT_H_

#include "my_inc.h"

#define uart2_send_len  20
#define uart2_recv_len 	 2024


//定义异步串口结构体类型
typedef struct
{
	uint8_t* send_buffer;           //发送缓存指针
	uint8_t* recv_buffer;            //接收缓存指针

	void (*send_array)(uint8_t*,uint16_t);  //串口发送数组
	void (*send_string)(uint8_t*);          //串口发送字符串
}uart_t;


extern uart_t  uart2;


#endif /* INC_MY_UART_H_ */
